package com.maiji.cloud.entities.shopingmall;


import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 
 * Description:  用户砍价记录表
 * @author zhanglr  
 * @date 2019年6月27日
 */
@NoArgsConstructor
@Data
@Accessors(chain = true)
@Table(name = "down_price_goods_log")
public class DownPriceGoodsLog {

    @TableId
	@Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
	private String uuId;
	
	@Column(name = "user_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String userId;//用户id
	
	@Column(name = "down_price_manage_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String downPriceManageId;//砍价商品id
	
	@Column(name = "status", type = MySqlTypeConstant.INT, length = 2,defaultValue = "0")
	private Integer status;//0:进行中，1：砍价成功,2:已结束
	
	@Column(name = "shoping_address_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String shopingAddressId;//收货地址id
	
	@Column(name = "order_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String orderId;//订单id,商品砍价成功之后和订单关联
	
	
	@Column(name = "in_time", type = MySqlTypeConstant.DATETIME)
	private Date inTime;
	
	@Column(name = "end_time", type = MySqlTypeConstant.DATETIME)
	private Date endTime;
	
}
